let base = 16;
function resize() {
    const scale = document.documentElement.clientWidth / 1920;
    document.documentElement.fontSize = base * Math.min(scale, 2) + 'px'
}